<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOphthalmologyRetinopathyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_ophthalmology_retinopathy', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('record_id')->comment('病例id');
            $table->unsignedTinyInteger('left')->default(0)->comment('左眼 0无 1轻度非增殖期 2中度非增殖期 3中度非增殖期 4增殖期');
            $table->unsignedTinyInteger('right')->default(0)->comment('右眼 0无 1轻度非增殖期 2中度非增殖期 3中度非增殖期 4增殖期');
            $table->string('remark',80)->comment('备注');
          $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_ophthalmology_retinopathy');
    }
}
